﻿<UserControl x:Class="ImageView.FullImageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:common="clr-namespace:ImageUtils.Common;assembly=ImageUtils.Common"
             xmlns:local="clr-namespace:ImageView"
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="700" Background="#FF333333">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <common:EditableSlider x:Name="SlideZoom" Grid.Column="0" Minimum="0.2" Maximum="6" Value="1" Height="18" ValueChanged="SlideZoom_ValueChanged">
        	<common:EditableSlider.LayoutTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform Angle="-90"/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</common:EditableSlider.LayoutTransform>
        </common:EditableSlider>
        
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Column="1" Background="#FF595959" local:KineticBehaviour.HandleKineticScrolling="True">
            <Rectangle x:Name="RectImage">
                <Rectangle.LayoutTransform>
            		<TransformGroup>
            			<ScaleTransform x:Name="TransfScale"/>
            			<RotateTransform x:Name="TransfRot"/>
            		</TransformGroup>
            	</Rectangle.LayoutTransform>
            </Rectangle>
        </ScrollViewer>
    </Grid>
</UserControl>
